cmake_minimum_required(VERSION 3.5)   
project(EnbuFolder LANGUAGES CXX)  

set(CMAKE_INCLUDE_CURRENT_DIR ON)  
set(CMAKE_PREFIX_PATH "E:/CLibraryFile/Qt/5.15.2/mingw81_64")  
set(CMAKE_AUTOUIC ON)  
set(CMAKE_AUTOMOC ON)  
set(CMAKE_AUTORCC ON)  
set(CMAKE_CXX_STANDARD 11)  
set(CMAKE_CXX_STANDARD_REQUIRED ON)  

find_package(Qt5 COMPONENTS Widgets REQUIRED)  
aux_source_directory(./src srcs)  

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")  
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")  

add_executable(${PROJECT_NAME}  
    # WIN32   
    ${srcs}   
)  

target_link_libraries(${PROJECT_NAME} Qt5::Widgets)